<?php

use Minishlink\WebPush\VAPID;


/**
 * 生成pwa 公私密钥
 */
if (!function_exists('create_pwa_secret_key')) {
    function create_pwa_secret_key()
    {
        $vapidKeys = VAPID::createVapidKeys(); // $vapidKeys['publicKey']  $vapidKeys['privateKey']
        return $vapidKeys;
    }
}





